package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IUserMapper extends BaseMapper<UserBean> {
    /**
     * 用户登录
     * @param name 用户名
     * @param pwd 用户密码
     * @return 登陆成功返回用户对象，否则返回null
     */
    UserBean login(@Param("name") String name, @Param("pwd") String pwd);
}
